package fem2.gui.actions;

import fem2.gui.Viewer;
import inf.vtk.pm.PipelineCollection;

import java.awt.Frame;
import java.awt.event.ActionEvent;

public class SolveAction extends ActionBaseModel {

	private static final long serialVersionUID = 1L;

	public SolveAction(PipelineCollection pc) {
		super("Solve", pc);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		((Viewer) Frame.getFrames()[0]).solve(true, true);
	}
}
